<div class="page-body">
    <a class="btn btn-default maroon" style="margin-bottom: 15px;">
        <form action="{:U('Class/addStudents')}" method="post" enctype="multipart/form-data">
            <input type="file" name="excel" style="display: inline">
            <input type="submit" value="确认导入-新增" />
            <span>注:此处导入只会批量新增学生!</span>
        </form>
    </a><br>
    <a class="btn btn-default maroon" style="margin-bottom: 15px;">
        <form action="{:U('Class/addClass')}" method="post" enctype="multipart/form-data">
            <input type="file" name="excel" style="display: inline">
            <input type="submit" value="确认导入-新增" />
            <span>注:此处导入只会批量新增班级!</span>
        </form>
    </a><br>
    <a class="btn btn-default purple" href="{:U('edit')}" style="margin-bottom: 15px;"><i class="fa fa-plus"></i>
        添加幼儿园
    </a>
    <a class="btn btn-default purple" href="{:U('export')}" style="margin-bottom: 15px;"><i class="glyphicon glyphicon-cloud-download"></i>
        导出幼儿园
    </a>
    <div class="row">
        <div class="col-xs-12 col-md-12">
            <div class="widget">
                <div class="widget-header ">
                    <span class="widget-caption">幼儿园列表</span>
                    <div class="widget-buttons">
                        <a href="#" data-toggle="maximize">
                            <i class="fa fa-expand"></i>
                        </a>
                        <a href="#" data-toggle="collapse">
                            <i class="fa fa-minus"></i>
                        </a>
                        <a href="#" data-toggle="dispose">
                            <i class="fa fa-times"></i>
                        </a>
                    </div>
                </div>
                <div class="widget-body">
                    <table class="table table-striped table-hover">
                        <thead>
                        <tr>
                            <th>
                                ID
                            </th>
                            <th>
                                幼儿园名称
                            </th>
                            <th>
                                操作
                            </th>
                        </tr>
                        </thead>

                        <tbody>
                        <foreach name="childschool" item="v">
                            <tr>
                                <td>
                                    {$v.id}
                                </td>
                                <td>
                                    {$v.name}
                                </td>
                                <!--<td>-->
                                    <!--{$v.name}-->
                                    <!--<eq name="v.wx_show" value="1">-->
                                        <!--<span class="label label-success graded">微信</span>-->
                                    <!--</eq>-->
                                <!--</td>-->


                                <td>
                                    <a class="btn btn-danger btn-xs del-btn"
                                       data-href="{:U('del',array('id'=>$v['id']))}"><i
                                            class="fa fa-trash-o"></i>删除</a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('edit',array('id'=>$v['id']))}">
                                        <i class="fa fa-edit"></i>修改</a>
                                    <a class="btn btn-info btn-xs"
                                       href="{:U('class/index',array('child_school_id'=>$v['id']))}">
                                        <i class="fa fa-edit"></i> 班级列表
                                    </a>
                                </td>
                            </tr>
                        </foreach>
                        </tbody>
                    </table>
                    {$page}
                </div>
            </div>
        </div>
    </div>
</div>